<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ProductPlatform
 *
 * @ORM\Table(name="ue_product_platform", indexes={@ORM\Index(name="ue_product_platform_product_id_idx", columns={"product_id"}), @ORM\Index(name="ue_product_platform_platform_id_idx", columns={"platform_id"})})
 * @ORM\Entity
 */
class ProductPlatform
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="product_no", type="string", length=200, nullable=false)
     */
    private $productNo;

    /**
     * @var \Platform
     *
     * @ORM\ManyToOne(targetEntity="Platform")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="platform_id", referencedColumnName="id")
     * })
     */
    private $platform;

    /**
     * @var \Product
     *
     * @ORM\ManyToOne(targetEntity="Product")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="product_id", referencedColumnName="id")
     * })
     */
    private $product;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set productNo
     *
     * @param string $productNo
     * @return ProductPlatform
     */
    public function setProductNo($productNo)
    {
        $this->productNo = $productNo;

        return $this;
    }

    /**
     * Get productNo
     *
     * @return string 
     */
    public function getProductNo()
    {
        return $this->productNo;
    }

    /**
     * Set platform
     *
     * @param \Ue\ErpBundle\Entity\Platform $platform
     * @return ProductPlatform
     */
    public function setPlatform(\Ue\ErpBundle\Entity\Platform $platform = null)
    {
        $this->platform = $platform;

        return $this;
    }

    /**
     * Get platform
     *
     * @return \Ue\ErpBundle\Entity\Platform 
     */
    public function getPlatform()
    {
        return $this->platform;
    }

    /**
     * Set product
     *
     * @param \Ue\ErpBundle\Entity\Product $product
     * @return ProductPlatform
     */
    public function setProduct(\Ue\ErpBundle\Entity\Product $product = null)
    {
        $this->product = $product;

        return $this;
    }

    /**
     * Get product
     *
     * @return \Ue\ErpBundle\Entity\Product 
     */
    public function getProduct()
    {
        return $this->product;
    }
}
